package com.xiangxiao.rpan.authority.model;

import com.xiangxiao.rpan.authority.vo.UserVo;
import lombok.Data;
import org.springframework.beans.factory.annotation.Required;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author xiangxiao
 * email: 573768011@qq.com
 * date: 2022/11/4 10:16
 */
@Data
public class UserInfo implements Serializable {
  private static final long serialVersionUID = -6181746620261240272L;

  @NotNull(message = "用户基本信息不能为空")
  private UserVo userVo;

  @NotEmpty(message = "用户角色信息不能为空")
  private List<UserRoleInfo> userRoleInfos;

  private List<AuthModuleInfo> authModuleInfoList;

  private List<Operation> operationList;

  /**
   * 用户登录的ip
   */
  private String ip;

}
